package com.mall.product.dao;

import com.mall.product.entity.SpuInfoEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

/**
 * spu信息
 * 
 * @author xzt
 * @email xzt@163.com
 * @date 2024-08-10 15:54:08
 */
@Mapper
public interface SpuInfoDao extends BaseMapper<SpuInfoEntity> {

    @Update("update pms_spu_info set publish_status = #{code} where id = #{spuId}")
    void updatePulishStatus(@Param("code") int code,@Param("spuId") Long spuId);
}
